home *** CD-ROM | disk | FTP | other *** search
- program testkm;
- uses NameKey, crt, readttt5, fastttt5, iottt5;
- { If you do not have the TTT toolbox remove readttt5, fasttt5, iottt5
- from the USES statement.}
-
- var
- name : String;
- key : String;
- ans : Boolean;
-
- begin
- Clrscr;
-
- { NON-TTT - remove from here to }
- Create_Fields(1);
- Set_Default_Rules(AllowNull+JumpIfFull);
-
- Add_Field(1,1,1,1,1,20,5);
- String_Field(1,name,'***************************************');
- {here}
-
- Repeat
- Clrscr;
- { NON-TTT - remove from here to }
- WriteAt(13,5,White,Black,'Name:');
- Display_All_Fields;
- Process_Input(1);
- {here}
- {non-ttt replace previous code with
- GotoXY(13,5); Write('Name:');
- GotoXY(13,11); readln(name);
- this}
- key := NameToKey(name);
-
- GotoXY(12,13); writeln(key);
-
- {NON-TTT - remove from here }
- Read_YN(25,22,'Again? ',1,ans)
- {to here}
-
- {non-ttt replace previous code with
- while((ans <> 'Y') or (ans <> 'N')) do
- begin
- ans := 'Y'
- GotoXY(25,22) Write('Again? Y');
- GotoXY(25,29) Readln(ans);
- UpCase(ans);
- end;
- this}
-
- Until(not ans);
- Clrscr;
- end.
-